#pragma once


#define SAFE_DELETE(x)			 { delete x; x = NULL; }
#define SAFE_DELETE_ARRAY(x)	 { delete[] x; x = NULL; }
#define SAFE_RELEASE(x)			if(x != NULL) { x->Release(); x = NULL; }

#define GET_BIT(val, bit)	(val >> bit & 0x01)

#define EPSILON					0.001f